{% extends "base.html" %}
{% block title %}Личный кабинет{% endblock %}

{% block header %}
    <h1 class="header_header"><a href="/user_cabinet.html">Кабинет</a></h1>
{% endblock %}

{% block contentheader %}
    Редактирование пользователя {{nick}}.
{% endblock %}

{% block content %}
<div class="formdiv">
    <form action="/process_generating_pin" method="POST" enctype="multipart/form-data">            
        <input type="hidden" name="email" value={{email}}><br/>
        <p>Пин-код</p>
        <input type="text" name="pin" size="4" value="{{pin}}"disabled>
        <input type="submit" value="Сгенерировать"><br/>
    </form>
    <form action="/process_editing_player" method="POST" enctype="
    multipart/form-data">
        <input type="hidden" name="email" value={{email}}>
        <p>Имя</p>
        <input type="text" name="name" value="{{nick}}"><br/>
        <p>Слова</p>
        <textarea name="words" rows="10" cols="15" scrolling="auto">{{words}}</textarea><br/>
        <input type="submit" value="Готово">  
    </form>      
</div>
{% endblock %}